import service from "../utils/service.ts";

export interface SearchCondition {
    isAsc: boolean,
    orderBy: string,
    pageNo: number,
    pageSize: number,
    search: string,
    maxPrice: string,
    minPrice: string,
    searchAttr: string,
    searchPc: number
}

export const getGoodsCategory = () => {
    return service.get('/goods/get/productCategory/list')
}

export const getData = (condition : any) => {
    return service.get('/goods/list', {
        params: condition
    })
}